package dataobjects;

import java.io.Serializable;

public class User implements Serializable
{
	private String username;
	private String password;
	private String firstname;
	private String lastname;
	private String mailadress;
	private boolean admin;

	public User(String username, String password) 
	{
		this.setUsername(username);
		this.setPassword(password);		
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String name) {
		this.lastname = name;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public void setMailadress(String mailadress) {
		this.mailadress = mailadress;
	}

	public String getMailadress() {
		return mailadress;
	}
	
}
